### Copyright (C) 2010 Desmond Carter
###
### This file is part of Ar.
###
### Ar is free software: you can redistribute it and/or modify it under the
### terms of the GNU General Public License as published by the Free Software
### Foundation, either version 3 of the License, or (at your option) any later
### version.
###
### Ar is distributed in the hope that it will be useful, but WITHOUT ANY
### WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
### FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
### details.
###
### You should have received a copy of the GNU General Public License along
### with Ar. If not, see <http://www.gnu.org/licenses/>.

## This file is for variables local to the ar package that are used by many or
## all of the other modules.

# Used to allow initialization of the screen later:
import pygame

# Used in the main game file to initialize the screen:
width, height = 600, 600
# This is used in projections:
origin = [width/2, height/2]

# Used to apply foreshortening when projecting 3d coordinates to the 2d screen:
SHRINK = 1 / (2**0.5)

# Various colors used when drawing:
# The way DIMENSION_COLORS is handled is currently not consistent at all. It is
# currently being radically reworked.
DIMENSION_COLORS = (100, 0, 0, 100), (0, 100, 0, 100), (0, 0, 100, 100)
WHITE, RED, GRAY = (255, 255, 255, 255), (255, 0, 0, 255), (50, 50, 50, 255)

# This will be overwritten when the main game is started:
screen = pygame.Surface((width, height))
background = screen.copy()

# Pixel length of one "unit" of length:
scale = 50

# Self-explanatory:
drawn_dimensions = []
